<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>水仙花数</title>
</head>
<body>
<script>
    function flower() {
        for (let num = 100; num < 1000; num++) {
            let a = Math.floor(num / 100);
            let b = Math.floor((num % 100) / 10);
            let c = num % 10;
            if (a*a*a+ b*b*b + c*c*c=== num) {
                console.log(num);
            }
        }
    }
    flower();
</script>
</body>
</html>
